<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="resources/css/common.css" />
<link rel="stylesheet" type="text/css" href="resources/css/private.css" />
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
/*<![CDATA[*/

        .errorMessage {color: #FE0000}
    
/*]]>*/
</style>
</head>

<body><!--middle begin-->
<div class="middle wraps fix">
  <div class="lf lflogo"><img src="manageImages/ht-logo.jpg" width="465" height="127" alt="" /></div>
  <div class="middle-bd"></div>
  <div class="rgfont">
  	<form:form method="post"  modelAttribute="user">
    <dl>
       <dt>欢迎登录网站后台管理系统</dt>
       <dd>
         <form:label path="username" ><spring:message code="user.username"/></form:label> 	<form:input path="username" cssClass="loginip"/> <form:errors path="username" />
                 </dd>
       <dd>
          <form:label path="password" ><spring:message code="user.password"/></form:label> 	<form:password path="password" cssClass="loginip"/> <form:errors path="password" />
          </dd>
              <dd>
          <label>验证码</label>
          <span><input class="loginip loginips" name="verifyCode" id="verifyCode" type="text" /></span>
          <span><img title="看不清楚,换一张" style="height:60px;width:100px;" id="yw0" src="/manage/captcha/v/520f534e9e4f2.shtml" alt="" /></span>
          
       </dd>
       
<dd>
        	<label for="rememberMe"><spring:message code="user.rememberMe"/></label> 	<input id="rememberMe" name="rememberMe"  type="checkbox" value=""/> 
                 </dd>

      <dd class="mar13">
        <label>&nbsp;</label>
         <span><input class="hbuttom" value="<spring:message code="form.submit"/>" type="submit" name="yt0" /></span>
         <span class="reds" style='display:none'><a href="" title="">忘记密码了?</a></span>
       </dd>
    </dl>
    <p class="reds">建议使用IE7及以上版本的IE或其他浏览器</p>
    </form:form>
  </div>
</div>
	 
	
	<script type="text/javascript">
/*<![CDATA[*/
jQuery(function($) {

       function gotoLogin(){
            var domain = location.protocol+'//'+location.host;
            var login_url = domain+'/manage/login.shtml';

            if(self.location.href == login_url && window.top != window.self){
                top.location.href = domain + '/manage/login.shtml';
            }
        }
        gotoLogin();
    

$(document).on('click', '#yw0', function(){
	$.ajax({
		url: "\/manage\/captcha\/refresh\/1.shtml",
		dataType: 'json',
		cache: false,
		success: function(data) {
			$('#yw0').attr('src', data['url']);
			$('body').data('captcha.hash', [data['hash1'], data['hash2']]);
		}
	});
	return false;
});

});
/*]]>*/
</script>
</body>
</html>
